---@class ProfessionAdditionTemplate
local ProfessionAdditionTemplate = ClientFight.CreateClass("ProfessionAdditionTemplate")
function ProfessionAdditionTemplate:ctor()
    --/**职业id*/
    --@TplAttr(name = "f_ProfessionId")
    self.professionId = 0;

    --@TplAttr(name = "f_NeedRank")
    self.needRank = 0;

    --//属性加成
    --@TplAttr(name = "f_AttributeAddition")
    ---@type number[][]
    self.attributeAddition = nil;
end
function ProfessionAdditionTemplate:loadCfg(cfg)
    self.professionId = cfg.f_ProfessionId
    self.needRank = cfg.f_NeedRank
    self.attributeAddition = decodeJsonStrToTabel(cfg.f_AttributeAddition)
end